package cn.zhf.shop.controller;


import cn.zhf.shop.entity.Message;
import cn.zhf.shop.service.AccountDealTitleService;
import cn.zhf.shop.service.AdService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/accountdeal/title")
@Api(tags = "交易对账头部模块")
public class AccountdealTitleController {

    @Resource
    private AccountDealTitleService accountDealTitleService;

    @ApiOperation(value = "获取所有交易对账头部信息")
    @GetMapping("/all")
    public Message selectAll() {
        return accountDealTitleService.selectByAll();
    }


    @ApiOperation(value = "根据日期查询交易对账头部信息")
    @GetMapping("/selectByUpdateTime")
    public Message selectByUpdateTime(String updateTime) {
        return accountDealTitleService.selectByUpdateTime(updateTime);
    }





}
